first item in array php

31

get first element of array php -

array_values($array)[0];

php get first element of array -

array_shift(array_values($array));

get first element of array php -

array_pop(array_reverse($array));

Comments

Submit
0 Comments